﻿<div id="pageInfo" class="mt-20 r">
	<c:if test="${pageInfo.hasPreviousPage}">
		<a
			href="${pageUrl}?pageNum=1&pageSize=${pageInfo.pageSize}"
			title="首页"><span class="btn btn-primary radius">首页</span></a>
		<a
			href="${pageUrl}?pageNum=${pageInfo.prePage}&pageSize=${pageInfo.pageSize}"
			title="前一页"><span class="btn btn-primary radius">前一页</span></a>
	</c:if>
	<c:if test="${!pageInfo.hasPreviousPage}">
		<span class="btn btn-default radius">首页</span>
		<span class="btn btn-default radius">前一页</span>
	</c:if>
	<c:forEach items="${pageInfo.navigatepageNums}" var="nav">
		<c:if test="${nav == pageInfo.pageNum}">
			<span class="btn btn-danger radius active">${nav}</span>
		</c:if>
		<c:if test="${nav != pageInfo.pageNum}">
			<a title="转到第${nav}页"
				href="${pageUrl}?pageNum=${nav}&pageSize=${pageInfo.pageSize}"><span
				class="btn btn-primary radius">${nav}</span></a>
		</c:if>
	</c:forEach>
	<c:if test="${pageInfo.hasNextPage}">
		<a
			href="${pageUrl}?pageNum=${pageInfo.nextPage}&pageSize=${pageInfo.pageSize}"
			title="后一页"><span class="btn btn-primary radius">后一页</span></a>
		<a
			href="${pageUrl}?pageNum=${pageInfo.pages}&pageSize=${pageInfo.pageSize}"
			title="尾页"><span class="btn btn-primary radius">尾页</span></a>
	</c:if>
	<c:if test="${!pageInfo.hasNextPage}">
		<span class="btn btn-default radius">后一页</span>
		<span class="btn btn-default radius">尾页</span>
	</c:if>
</div>
